from app.api import abstract

MAX_ITEMS = 50

class Action(abstract.Action):
    def _get(self):
        
        mc_key = "ws/n/1"
        
        #data = abstract.memcache.get(mc_key)
        
        if True or not data:

            wishes = abstract.models.wish.listRanked(MAX_ITEMS, self.platform_id)
            
            data = abstract.models.wish.format(wishes)
            
            #abstract.memcache.set(mc_key, data, 300)
            
        return data
            